package Node;

public class Node {
	public int parent;
	public String id;
	
	private String temp;
	private String light;
	private String battery;
	private String current;

        private String time;
        
	public Node(){
		
	}

    public Node(String id){
    	this.id = id;
    }

	public Node(String id, int parent){
		this.id = id;
		this.parent = parent;
	}
	
	public String getTemp(){
		return this.temp;
	}
	
	public String getLight(){
		return this.light;
	}
	
	public String getBattery(){
		return this.battery;
	}
	
	public String getCurrent(){
		return this.current;
	}

        public String getTime(){
            return this.time;
        }
        
	public void setTemp(String temp){
		this.temp = temp;
	}
	
	public void setLight(String light){
		this.light = light;
	}
	
	public void setBattery(String battery){
		this.battery = battery;
	}
	
	public void setCurrent(String current){
		this.current = current;
	}

        public void setTimestamp(String time){
            this.time = time;
        }

	public String toString(){
		return id + " " + temp + " " + light + " " + battery + " " + current;
	}
	
}
